package com.lizy.controller;

import com.lizy.service.Strategy;

/**
 * @author : Li
 * @date : 2024-10-09 14:07
 * @description :
 **/
public class Context {
    private Strategy strategy;

    public Context(Strategy strategy){
        this.strategy = strategy;
    }

    public int executeStrategy(int num1, int num2){
        return strategy.deOperation1(num1, num2);
    }

    public int executeStrategy2(int num1, int num2){
        return strategy.deOperation2(num1, num2);
    }

    public int executeStrategy3(int num1, int num2){
        return strategy.deOperation3(num1, num2);
    }

    public int executeStrategy4(int num1, int num2){
        return strategy.deOperation4(num1, num2);
    }
}
